// export const beforeImageURl = 'http://static.easycarlife.cn/media/';
// export const imageUrl = 'https://image.easycarlife.cn/media/';

export const imageUrl = 'http://resource.xiiche.com/media/';//'https://image.xiiche.com/media/';

export const beforeImageURl = 'http://resource.xiiche.com/media/';

//---------------------------------地址配置
export const loginUrl="/fc/login/in";
export const logoutUrl="/fc/login/out/{0}"
//登陆后的首页菜单
export const accountMenusUrl="/fc/account/menus/{0}";

//-----------------------------系统设置
//账号管理
export const adminListUrl="/fc/account/list"
export const adminSaveUrl="/fc/account/save" //增删都用这个地址
export const adminMenusSave ="/fc/account/menusSave/{0}" //授权菜单列表
export const adminAuthMenusUrl ="/fc/account/menus/{0}/{1}"; //菜单列表，以及授权过的菜单列表

//--菜单 列表，更新，删除
export const menusUrl="/fc/menu/list/";
export const menuSaveUrl ="/fc/menu/updateMenu"
export const updateMenuStatusUrl="/fc/menu/disable/{0}/{1}" 

// --- 宠物分类管理 列表，增删
export const petTypeListUrl="/fc/petType/queryList" 
export const petTypeByIdUrl="/fc/petType/queryById/{0}" 

export const petTypeParentListUrl="/fc/petType/queryPetTypeParentList" //查询父级分类
export const petTypeSaveUrl="/fc/petType/savePetType" //保存宠物分类
export const petTypeDelUrl="/fc/petType/delete/{0}" //删除分类

// -- 常用语管理
export const commonWordsListUrl="/fc/commonWords/list"
export const commonWordsSaveUrl="/fc/commonWords/save"
export const commonWordsDelUrl="/fc/commonWords//del/{0}"
//--- 枚举常用语管理
export const complaintTypePageListUrl="/fc/complaintType/pageList";
export const complaintTypeTreeListUrl="/fc/complaintType/treeList";
export const complaintTypeListUrl="/fc/complaintType/list/{0}";


export const complaintTypeSaveUrl="/fc/complaintType/save";
export const complaintTypeDelUrl="/fc/complaintType/del/{0}";
//--- 服务管理
export const servicePageListUrl="/fc/service/pageList";
export const serviceSaveUrl="/fc/service/save";



//---商户管理
export const storePageListUrl ="/fc/merchant/pageList";
export const storeSaveUrl ="/fc/merchant/save";
export const orderManageListUrl = "/fc/order/pageList";//商户订单列表
export const orderRevenueListUrl = "/fc/merchantRevenue/pageList";//商户账单列表
export const orderRevenueSaveUrl = "/fc/merchantRevenue/save";//更新商户账单状态


//---会员管理
export const userPageListUrl ="/fc/user/pageList";
export const userByIdUrl ="/fc/user/queryById/{0}";

export const userSaveUrl ="/fc/user/save";

// --作品管理 opus
export const petPublishPageListUrl ="/fc/petPublish/pageList";
export const petPublishSaveUrl ="/fc/petPublish/save";
export const complaintListUrl ="/fc/complaint/pageList"; //反馈列表
export const complaintSaveUrl ="/fc/complaint";//反馈数据修改

// --文件管理tocken
export const fileUploadUrl ="/fc/file/upload" //上传文件
export const base64UploadUrl="/fc/file/uploadBase64" //base64完成图片上传
// --- 宠物百科
export const petEncyclopediaPageListUrl = "/fc/petEncyclopedia/pageList" //分页列表
export const petEncyclopediaSaveUrl = "/fc/petEncyclopedia/save" //保存更新


export function replaceUrlParam (url,params){

    if(typeof params == 'object' &&params.constructor == Array ){
     for(var i=0;i<params.length;i++){
         url =url.replace("{"+i+"}",params[i]);
     }
    }
    return url;

}
